<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
		<title>Yming博客系统</title>
		<link rel="stylesheet" type="text/css" href="{:__TMPLPUB__}/Css/style.css"/>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/jquery.js"></script>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/slide.js"></script>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/check.js"></script>
	</head>
	<body>
		<div class="container">
			<table width="757" cellspacing="0" cellpadding="0" border="0" align="center">
				<tr align="right" valign="top">

					<td height="149" background="{:__TMPLPUB__}/Images/F_head.jpg" colspan="2">
							{if $GLOBALS['___login___']!=false}
							<div id="head">
								&nbsp;
							</div><!--/head-->
									<ul id="menu">
										<li class="level1" style="width:200px;"><a href="{:Dyhb::U('index/index')}">欢迎您:{$GLOBALS['___login___']['regname']}</a></li>
										<li class="level1"><a href="{:Dyhb::U('index/index')}">博客首页</a></li>
										<li class="level1"><a href="{:Dyhb::U('article/xlist')}">文章管理</a>
											<ul>
												<li><a href="{:Dyhb::U('article/add')}">添加文章</a></li>
												<li><a href="{:Dyhb::U('article/xlist')}">我的文章</a></li>
											</ul>
										</li>
										<li class="level1"><a>图片管理</a>
											<ul>
												<li><a>2</a></li>
												<li><a>2</a></li>
												<li><a>2</a></li>
												<li><a>2</a></li>
											</ul>
										</li>
										<li class="level1"><a>好友管理</a>
											<ul>
												<li><a>3</a></li>
												<li><a>3</a></li>
												<li><a>3</a></li>
												<li><a>3</a></li>
											</ul>
										</li>
										<li class="level1"><a href="{:Dyhb::U('user/logout')}">退出登录</a></li>
									</ul>
							{d*else}
							<div id="head" style="float:right;">
								<a href="{:Dyhb::U('index/index')}">首页</a>
								<a href="{:Dyhb::U('article/add')}">我的博客</a>
								<a href="{:Dyhb::U('user/register')}">博客注册</a>
							</div><!--/head-->
							<ul id="menu">
								<li class="level1" style="width:200px;"><a href="{:Dyhb::U('index/index')}">博客首页</a></li>
								<li class="level1"><a>下载</a>
									<ul>
										<li><a>博客源码</a></li>
									</ul>
								</li>
							</ul>
							{/if}
					</td>
				</tr>
				<!--/header-->
				<tr>
					<td height="501" background="{:__TMPLPUB__}/Images/bg.jpg"  class="label_vtl"  >
						<div style="margin:20px 10% 0px 10%;" class="_table">
							<form action="{:Dyhb::U('filecomment/deal?gid='.$oArt->article_id)}" method="post" name="comment_form">
								<table width="100%" border="1" cellspacing="0" cellpadding="0">
									<tr >
										<td>
											<div class="blogcontent left">
													<p id="_title_">{$oArt->article_title}</p>
													<p style="padding:0px;margin:0px;color:#FFA07A">{$oArt->article_createdate} {$oArt->article_createdate|strtotime|date="l",**}</p>
													<div class="cont">
														{$TheController->toHtml($oArt->article_content)}
													</div>
											</div>
											<p id="commenthead">
												网友评论:
											</p>
											<if condition="!empty($oCom)">
												<foreach for=oCom>
													<div id="commentlist">
														<div>{$i}楼:</div>
														{$value->user_name}
														<p style="padding:0px;margin:0px;color:#FFA07A">{$value->comment_createdate} {$value->comment_createdate|strtotime|date="l",**}</p>
														<p>{$TheController->toHtml($value->comment_content)}</p>
														{if $GLOBALS['___login___']!=false}
															<div style="text-align:right;">
																<a href="{:Dyhb::U('filecomment/deleteCom?id='.$value->comment_id)}">删除</a>
															</div>
														{/if}
													</div>
												</foreach>
											<else />
											</if>
											<div id="comment">
											<label for="comment_name">姓 名 : &nbsp</label><input type="text" size="30" name="comment_name" id="comment_name" /><br />
											<label for="comment_email">Email : &nbsp</label><input type="text" size="50" name="comment_email" id="comment_email" /><br />
											<label for="comment_content" style="float:left;">内 容 : </label><textarea style="margin-left:7px;"rows="10" cols="80" name="comment_content" id="comment_content" ></textarea><br />
											<input type="submit" name="comment_sub" id="comment_sub" value="发表评论" style="margin-left:42px;" onclick="javascript:return pubcheck();" />
											</div>
										</td>
									</tr>
								</table>
							</form>
						</div><!--/_table-->
					</td>
				</tr>
			</table>
		</div><!--/container-->
		<div id="backtop">
			<img src="{:__TMPLPUB__}/Images/backtop.png"/>
		</div>
	</body>
</html>
